package com.desire.mapper.base;

import com.desire.bean.base.Product;
import com.desire.common.Base.BaseMapper;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author LittleDesire
 * @description
 * @date 2022-05-23 周一 14:16
 * @since 17
 */
@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    String queryMaxCode(@Param("euid") String euid, @Param("categoryCode") String categoryCode);

    @MapKey(("id"))
    List<Map<String, Object>> queryProduct(Map<String, Object> map);
}
